import request from '@/utils/request'

// 查询材料上传列表
export function listMeterial(query) {
  return request({
    url: '/eqxm/meterial/list',
    method: 'get',
    params: query
  })
}

// 查询材料上传详细
export function getMeterial(id) {
  return request({
    url: '/eqxm/meterial/' + id,
    method: 'get'
  })
}

// 新增材料上传
export function addMeterial(data) {
  return request({
    url: '/eqxm/meterial',
    method: 'post',
    data: data
  })
}

// 修改材料上传
export function updateMeterial(data) {
  return request({
    url: '/eqxm/meterial',
    method: 'put',
    data: data
  })
}
// 修改材料上传
export function UploadMaterialFile(data) {
  return request({
    url: '/eqxm/team/UploadMaterial',
    method: 'post',
    data: data,
    timeout: 240000,
  })
}

// 删除材料上传
export function delMeterial(id) {
  return request({
    url: '/eqxm/meterial/' + id,
    method: 'delete'
  })
}

// 导出材料上传
export function exportMeterial(query) {
  return request({
    url: '/eqxm/meterial/export',
    method: 'get',
    params: query
  })
}